import javax.swing.*;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;



public class DoctorGUI extends JPanel{
    
    /**
     * 
     */
    int location = 0;
    private static final long serialVersionUID = 1L;
    private JTable table;
    public DoctorGUI() {
        
        JButton btnLogin = new JButton("Logout");
        btnLogin.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                location = 10;
            }
        });
        btnLogin.setBounds(10, 113, 193, 23);
        
        setLayout(null);
        add(btnLogin);
        
        JButton btnNewButton = new JButton("Add New Patient");
        btnNewButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                location = 13;
            }
        });
        btnNewButton.setBounds(10, 79, 193, 23);
        add(btnNewButton);
        
        JButton btnEditOldPetient = new JButton("Search Patients");
        btnEditOldPetient.addActionListener(new ActionListener() {
            
            public void actionPerformed(ActionEvent arg0) {
                location = 2;
            }
        });
        btnEditOldPetient.setBounds(10, 11, 193, 23);
        add(btnEditOldPetient);
        
        table = new JTable();
        table.setBounds(241, 44, 0, 0);
        add(table);
        
        JButton btnViewAppointments = new JButton("View Appointments");
        btnViewAppointments.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                location = 6;
            }
        });
        btnViewAppointments.setBounds(10, 45, 193, 23);
        add(btnViewAppointments);

}
    public int getLoc()
    {
        return location;
    }
    public void setLoc(int i)
    {
        location = i;
    }
}
